package edu.hunan.cxb18.orm.mapper;

import edu.hunan.cxb18.orm.pojo.User;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author chenheng
 * @create 2020-03-02 18:15
 */
public interface UserMapper {
    public void insertUser(User user);
    public void insertUsers(List<User> users);
    public void updataUser(@Param("pwd") String pwd, @Param("username") String username);
    public void updateUserById(User user);
    public User queryById(@Param("id") Integer id);
    /**
     * 模糊查询
     */
    public List<User> queryByIdModify(@Param("username") String username);
}
